<template>
  <div class="q-pa-md">
    <div class="q-gutter-y-md column" style="max-width: 300px">
      <t-field rounded filled>
        <template v-slot:prepend>
          <t-icon name="event" />
        </template>

        <template v-slot:control>
          <div class="self-center full-width no-outline" tabindex="0">{{
            text
          }}</div>
        </template>
      </t-field>

      <t-field rounded outlined>
        <template v-slot:control>
          <div class="self-center full-width no-outline" tabindex="0">{{
            text
          }}</div>
        </template>

        <template v-slot:append>
          <t-avatar>
            <img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg" />
          </t-avatar>
        </template>
      </t-field>

      <t-field
        rounded
        standout
        bottom-slots
        :model-value="text"
        label="Label"
        stack-label
        counter
      >
        <template v-slot:prepend>
          <t-icon name="place" />
        </template>

        <template v-slot:control>
          <div class="self-center full-width no-outline" tabindex="0">{{
            text
          }}</div>
        </template>

        <template v-slot:append>
          <t-icon name="close" class="cursor-pointer" />
        </template>

        <template v-slot:hint> Field hint </template>
      </t-field>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        text: ref('Field content'),
      };
    },
  };
</script>
